package edu.uwlax.cs.oayonlinestore.client.gui.admin;

import edu.uwlax.cs.oayonlinestore.client.gui.shared.AccountForm;
import edu.uwlax.cs.oayonlinestore.client.utils.TitlePage;

public class PageAdminEditAccount extends TitlePage {

	AccountForm acc;

	protected void create() {

		setTitle("Create/Edit Account");
	}

	public String getID() {
		return "AdminUser";
	}

	protected boolean onShow(int param) {
		this.removeAll();
		if (param != 0)
			add(acc = new AccountForm(false, true));
		else
			add(acc = new AccountForm(true, true));

		acc.loadUser(param);
		return true;
	}

}
